<template>
    <el-dropdown trigger="click" hide-on-click="false">
        <el-button type="primary">
            选择学年<el-icon class="el-icon--right"><arrow-down /></el-icon>
        </el-button>
        <template #dropdown>
            <el-dropdown-menu>
                <el-dropdown-item v-for="item in dropdownQuery" :key="item.value" :label="item.label" :value="item.value" />
            </el-dropdown-menu>
        </template>
    </el-dropdown>
</template>

<script setup>

import { ref, defineProps, defineEmits } from 'vue';
let props = defineProps({
    dropdownQuery: {
        type: Array,
        default: []
    }
})

onMounted(() => {
    console.log(props.dropdownQuery)
})


</script>

<style scoped lang="scss"></style>